﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;
namespace Sealight.Core.Domain
{
   public class LanguageEntity
    {
       public virtual Guid LanguageID { get; set; }
       public virtual string Name { get; set; }
       public virtual string Code { get; set; }
       public virtual string Description { get; set; }
       public virtual bool IsActive { get; set; }
       public virtual DateTime CreatedDate { get; set; }
       public virtual DateTime UpdatedDate { get; set; }

       public virtual language ToDataAdapter()
       {
           language entity = new language
           {
               id= this.LanguageID,
               code = this.Code,
               description = this.Description,
               is_active = this.IsActive,
               name = this.Name,
               created_date = this.CreatedDate,
               updated_date = this.UpdatedDate
           };

           return entity;
       }
    }
}
